package com.zhongketech.sunflower.activity;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Bitmap.CompressFormat;
import android.graphics.drawable.Drawable;
import android.media.ThumbnailUtils;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.PowerManager;
import android.provider.MediaStore;
import android.provider.MediaStore.Video.Thumbnails;
import android.support.v4.view.ViewPager;
import android.text.ClipboardManager;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.zhongketech.sunflower.Constant;
import com.zhongketech.sunflower.R;
import com.zhongketech.sunflower.adapter.ExpressionAdapter;
import com.zhongketech.sunflower.adapter.ExpressionPagerAdapter;
import com.zhongketech.sunflower.adapter.FcsContact;
import com.zhongketech.sunflower.adapter.FcsContactAdapter;
import com.zhongketech.sunflower.adapter.MessageAdapter;
import com.zhongketech.sunflower.adapter.VoicePlayClickListener;
import com.zhongketech.sunflower.utils.CommonUtils;
import com.zhongketech.sunflower.utils.ImageUtil;
import com.zhongketech.sunflower.utils.SmileUtils;




/**
 * 绑定界面
 * 
 */
public class CopyOfSpecialNumberActivity extends BaseActivity   {


	private static final String TAG = "SpecialNumberActivity";

	private TextView title;
	private ListView listView ;
	private Context context;   


	private List<FcsContact> myData = new ArrayList<FcsContact>();


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.fcs_contacts_activity);
		context = this;
		initData();
		initView(); 
	}


	@Override  
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if(KeyEvent.KEYCODE_BACK == keyCode)
		{
			back();
			return true;
		}

		return super.onKeyDown(keyCode, event);
	}

	private void initData()
	{
		FcsContact ad1 = new FcsContact();
		ad1.imageViewId = -1;
		ad1.itemText = "妈妈";
		ad1.statusText = null;
		ad1.textview2 = "13999999999";
		myData.add(ad1);


		FcsContact ad3 = new FcsContact();
		ad3.imageViewId = -1;
		ad3.itemText = "爸爸";
		ad3.statusText = null;
		ad3.textview2 = "13888888888";
		myData.add(ad3);


	}

	private void initView()
	{

//		findViewById(R.id.back_image).setOnClickListener(this);
//		listView = (ListView) findViewById(R.id.listView);
//		listView.setAdapter(new FcsContactAdapter(myData),Constant.FCS_ADAPTER_TYPE_BIND);
//		title = (TextView) findViewById(R.id.title);
//		title.setText("特殊号码");
	}


	private void back()
	{
		finish();
	}

}
